package com.hntest.entity;

import java.math.BigDecimal;

public class Moneywithdraw extends BaseAuditDomain {
    private static final long serialVersionUID = 1L;

    public static final int MONEY_WIDTHDRAW_NONE = 0;//默认转账状态
    public static final int MONEY_WIDTHDRAW_TRANSFERED = 1;//已转账
    public static final int MONEY_WIDTHDRAW_FIELD = 2;//转账失败
    public static final int MONEY_WIDTHDRAW_ABORT = 3;//转账撤销

    //8个字段 SQL14个
    private int Moneywithdraw_id;
    private String accountNumber;//银行卡号
    private String bankname;//银行类型
    private String bankforname;//开户行
    private String realName;//真实姓名
    private BigDecimal moneyAmount = BigDecimal.ZERO; //提现金额
    private BigDecimal charge = BigDecimal.ZERO; //手续费
    private int withDrawState = MONEY_WIDTHDRAW_NONE; //转账状态

    public Moneywithdraw() {  }

    public Moneywithdraw(int moneywithdraw_id, String accountNumber, String bankname, String bankforname, String realName, BigDecimal moneyAmount, BigDecimal charge, int withDrawState) {
        Moneywithdraw_id = moneywithdraw_id;
        this.accountNumber = accountNumber;
        this.bankname = bankname;
        this.bankforname = bankforname;
        this.realName = realName;
        this.moneyAmount = moneyAmount;
        this.charge = charge;
        this.withDrawState = withDrawState;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public static int getMoneyWidthdrawNone() {
        return MONEY_WIDTHDRAW_NONE;
    }

    public static int getMoneyWidthdrawTransfered() {
        return MONEY_WIDTHDRAW_TRANSFERED;
    }

    public static int getMoneyWidthdrawField() {
        return MONEY_WIDTHDRAW_FIELD;
    }

    public static int getMoneyWidthdrawAbort() {
        return MONEY_WIDTHDRAW_ABORT;
    }

    public int getMoneywithdraw_id() {
        return Moneywithdraw_id;
    }

    public void setMoneywithdraw_id(int moneywithdraw_id) {
        Moneywithdraw_id = moneywithdraw_id;
    }

    public String getAccountNumber() {
        return accountNumber;
    }

    public void setAccountNumber(String accountNumber) {
        this.accountNumber = accountNumber;
    }

    public String getBankname() {
        return bankname;
    }

    public void setBankname(String bankname) {
        this.bankname = bankname;
    }

    public String getBankforname() {
        return bankforname;
    }

    public void setBankforname(String bankforname) {
        this.bankforname = bankforname;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public BigDecimal getMoneyAmount() {
        return moneyAmount;
    }

    public void setMoneyAmount(BigDecimal moneyAmount) {
        this.moneyAmount = moneyAmount;
    }

    public BigDecimal getCharge() {
        return charge;
    }

    public void setCharge(BigDecimal charge) {
        this.charge = charge;
    }

    public int getWithDrawState() {
        return withDrawState;
    }

    public void setWithDrawState(int withDrawState) {
        this.withDrawState = withDrawState;
    }
}
